package com.forum.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;
import org.apache.commons.beanutils.BeanUtils;
import org.apache.poi.ss.formula.functions.T;

import java.io.Serializable;
import java.lang.reflect.InvocationTargetException;
import java.util.Date;

/**
 * <p>
 * 收藏表
 * </p>
 *
 * @author 张继成
 * @since 2023-12-31
 */
@Data
@TableName("favoritetab")
public class FavoritetabEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    public FavoritetabEntity() {

    }

    public FavoritetabEntity(T t) {
        try {
            BeanUtils.copyProperties(this, t);
        } catch (IllegalAccessException | InvocationTargetException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
    }
    /**
     * 主键
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 创建时间
     */
    private Date addtime;

    /**
     * 用户id
     */
    @TableField("UserId")
    private Long userid;

    /**
     * 商品Id
     */
    @TableField("RefId")
    private Long refid;

    /**
     * 表名
     */
    @TableField("TabName")
    private String tablename;

    /**
     * 名称
     */
    @TableField("Name")
    private String name;

    /**
     * 图片
     */
    @TableField("Picture")
    private String picture;

    /**
     * 类型
     */
    @TableField("Type")
    private String type;

    /**
     * 推介类型
     */
    @TableField("IntelType")
    private String inteltype;

    /**
     * 备注
     */
    @TableField("remark")
    private String remark;

}
